import { RouteRecordRaw } from 'vue-router'
/* 不需要权限的路由 */
const constantRoutes: RouteRecordRaw[] = [
  // 找不到路由重定向到首页
  {
    path: '/:pathMatch(.*)*',
    redirect: '/DigitalizeCountry',
    meta: {
      hide: true
    }
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/constant/login/Login.vue'),
    meta: {
      title: '登录'
    }
  },
  {
    path: '/operate',
    name: 'operate',
    component: () => import('@/views/constant/operate/operate.vue'),
    meta: {
      title: '操作页面'
    }
  }
]

export default constantRoutes
